
// 购物车模块的vuex管理
const cartStore = {
  namespaced: true,//命名空间
  state: {
    price: 888
  },
  getters: {
    priceGetters: state => state.price
  },
  mutations: {
    changePrice (state, price) {
      state.price = price;
    }
  },
  actions: {
    priceActions ({ commit }, price) {
      commit("changePrice", price)
    }
  }
}
export default cartStore